package com.bajie.bjlisten.entity;

import com.bajie.bjlisten.enums.DevicePushMessageEnum;
import com.bajie.bjlisten.enums.DevicePushSignEnum;
import com.bajie.bjlisten.enums.DeviceTypeEnum;
import lombok.Data;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;


/**
 * 消息推送表历史表
 */
@Data
@ToString
@Entity
@Table(name = "bj_device_message")
@GenericGenerator(name = "jpa-uuid", strategy = "uuid")
public class BjDeviceMessage {
    @Id
    @GeneratedValue(generator = "jpa-uuid")
    @Column(length = 32)
    private String id;
    private DeviceTypeEnum device_type;
    private String device_token;
    private String userId;
    private DevicePushMessageEnum pushMessage;
    private DevicePushSignEnum pushSign;
    private Date createTime;
    private String pushEbookId;
    private String content;
}

